/*
 * @Author: your name
 * @Date: 2020-08-23 19:19:02
 * @LastEditTime: 2020-08-27 14:33:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹\two-app\src\utils\https.js
 */

// get post delete put 统一处理
import axios from './request'

export const getUrl = (url, params) => {
  return axios.get(url, { params: { ...params } })
}

export const postUrl = (url, params) => {
  return axios.post(url, { ...params })
}

export const deletetUrl = (url, params) => {
  console.log(params, '--------删除的')
  return axios.delete(url, { params: { ...params } })
}

export const putUrl = (url, params) => {
  return axios.put(url, { ...params })
}

export const deletedataUrl = (url, params) => {
  console.log(params, '--------删除的')
  return axios.delete(url, { data: { ...params } })
}
